package com.hoas.quickstart.threads.chapter02.chapter02_1_1;

import java.util.concurrent.TimeUnit;

public class HasSelfPrivateNum {

    public void addI( String username ) throws InterruptedException {

        int num = 0;
        if (username.equals("a")) {
            num = 100;
            Thread.sleep(2000);
        } else {
            num = 200;
        }

        System.out.println(username + " num=" + num);

    }

}
